QuickTime 2.1 introduced two functions that you can use to put a device into full-screen mode (that is, select where and when the menu bar is not visible).
You can use the BeginFullScreen function to begin full-screen mode for a specified monitor.
pascal OSErr BeginFullScreen (
Ptr *restoreState,
GDHandle whichGD,
short *desiredWidth,
short *desiredHeight,
WindowPtr *newWindow,
RGBColor *eraseColor,
long flags);
enum {
fullScreenHideCursor = 1L << 0,
fullScreenAllowEvents = 1L << 1,
fullScreenDontChangeMenuBar = 1L << 2,
fullScreenPreflightSize = 1L << 3
};
The BeginFullScreen function returns, in the restoreState parameter, a pointer to a block of private state information that indicates how to return from full-screen mode. You pass that pointer as a parameter to the EndFullScreen function (described next).
The Macintosh Interface Standard states that the menu bar must always be present, and that information must always appear in windows. However, many multimedia applications have chosen to change the look and feel of the interface based on their needs. The number of details to keep track of when doing this continues to increase. To help solve this problem, QuickTime 2.1 added functions to put a GDevice into full screen mode.
You can use the EndFullScreen function to end full-screen mode for a graphics device.
pascal OSErr EndFullScreen (Ptr fullState, long flags);